package com.pine.app.module.security.core.matcher;

import javax.servlet.http.HttpServletRequest;

/**
 * @author xiaoyuan
 * @create 2020/3/16 16:37
 **/
public class AnyRequestMatcher implements RequestMatcher   {

    public static final RequestMatcher INSTANCE = new AnyRequestMatcher();

    public boolean matches(HttpServletRequest request) {
        return true;
    }

    public boolean equals(Object obj) {
        return obj instanceof AnyRequestMatcher || obj instanceof AnyRequestMatcher;
    }

    public int hashCode() {
        return 1;
    }

    public String toString() {
        return "any request";
    }

    private AnyRequestMatcher() {
    }
}
